import request from '@/utils/request'

// 查询OrderSummary列表
export function listOrdersummary(query) {
  return request({
    url: '/mail/ordersummary/list',
    method: 'get',
    params: query
  })
}

// 查询OrderSummary详细
export function getOrdersummary(id) {
  return request({
    url: '/mail/ordersummary/' + id,
    method: 'get'
  })
}

// 新增OrderSummary
export function addOrdersummary(data) {
  return request({
    url: '/mail/ordersummary',
    method: 'post',
    data: data
  })
}

// 修改OrderSummary
export function updateOrdersummary(data) {
  return request({
    url: '/mail/ordersummary',
    method: 'put',
    data: data
  })
}

// 删除OrderSummary
export function delOrdersummary(id) {
  return request({
    url: '/mail/ordersummary/' + id,
    method: 'delete'
  })
}

// 导出OrderSummary
export function exportOrdersummary(query) {
  return request({
    url: '/mail/ordersummary/export',
    method: 'get',
    params: query
  })
}